session=$1
tmux has-session -t $session
if [ $? != 0 ]
then
     tmux new-session -s $session -n Musix -d "sleep 2 && cava -f 30 -b 25 -c green -m normal -s 150% -i fifo -p /tmp/mpd.fifo"
     tmux split-window -t "$session:0.0" -v "sleep 2 && ncmpcpp"
     tmux attach -t $session
else
     echo 'SESSION ALREADY EXISTS'
fi
